/* 全局样式 */
.knowledge-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  overflow-x: hidden;
}

/* 排球主题封面区 */
.cover-section {
  position: relative;
  height: 500rpx; /* 使用固定高度 */
  overflow: hidden;
}

.volleyball-swiper {
  width: 100%;
  height: 100%;
}

.swiper-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持图片比例并覆盖整个区域 */
}

.cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40rpx 30rpx;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
  text-align: center;
}

.cover-title {
  font-size: 40rpx;
  font-weight: bold;
  margin-bottom: 60rpx;
  display: block;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
}

.scroll-indicator text {
  font-size: 28rpx;
  margin-bottom: 10rpx;
}

.scroll-icon {
  width: 40rpx;
  height: 40rpx;
  border: 2rpx solid #fff;
  border-radius: 50%;
  position: relative;
}

.scroll-icon::after {
  content: '';
  position: absolute;
  top: 10rpx;
  left: 50%;
  transform: translateX(-50%);
  width: 8rpx;
  height: 12rpx;
  background-color: #fff;
  border-radius: 4rpx;
  animation: scrollDown 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20rpx);
  }
  60% {
    transform: translateY(-10rpx);
  }
}

@keyframes scrollDown {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(10rpx);
    opacity: 0;
  }
}

/* 通用部分标题 */
.section-title {
  font-size: 40rpx;
  font-weight: bold;
  color: #1989fa;
  text-align: center;
  padding: 40rpx 0;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 20rpx;
  left: 50%;
  transform: translateX(-50%);
  width: 120rpx;
  height: 6rpx;
  background-color: #1989fa;
  border-radius: 3rpx;
}

/* 核心信息速览卡 */
.info-cards-section {
  padding: 0 30rpx 60rpx;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20rpx;
}

.info-card {
  flex: 1 1 calc(33.33% - 20rpx);
  min-width: 260rpx;
  background-color: #fff;
  border-radius: 16rpx;
  padding: 35rpx; // 从30rpx增加到35rpx，增加内部空间
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-title {
  font-size: 34rpx; // 从32rpx增加到34rpx
  font-weight: bold;
  margin-bottom: 25rpx; // 从20rpx增加到25rpx
  color: #333;
  text-align: center; // 标题居中，增强视觉效果
}

.info-card:hover {
  transform: translateY(-10rpx);
  box-shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 32rpx;
  font-weight: bold;
  margin-bottom: 20rpx;
  color: #333;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 15rpx;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 8rpx 0; // 增加上下内边距，提升可读性
}

.info-label {
  font-size: 30rpx; // 从26rpx增加到30rpx
  color: #666;
  min-width: 120rpx; // 固定标签宽度，确保对齐更整齐
}

.info-value {
  font-size: 30rpx; // 从26rpx增加到30rpx
  font-weight: 500;
  color: #333;
}

.fivb-logo {
  width: 120rpx;
  height: 120rpx;
  margin: 0 auto 20rpx;
  background-color: #f0f0f0;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.fivb-logo::after {
  content: 'FIVB';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36rpx;
  font-weight: bold;
  color: #1989fa;
}

.fivb-name {
  display: block;
  text-align: center;
  font-size: 28rpx;
  font-weight: bold;
  margin-bottom: 10rpx;
}

.fivb-desc, .olympic-desc {
  font-size: 24rpx;
  color: #666;
  line-height: 1.5;
}

.olympic-icon {
  width: 120rpx;
  height: 120rpx;
  border-radius: 50%;
  background-color: #2D7EFF; // 蓝色
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20rpx;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.olympic-icon .ring {
  position: absolute;
  width: 70rpx;   // 调整圆环大小
  height: 70rpx;
  border: 6rpx solid;
  border-radius: 50%;
  box-sizing: border-box;
}

.olympic-icon .ring-blue {
  top: 0;
  left: 0;
  border-color: #0072c6;
  z-index: 5;
}

.olympic-icon .ring-yellow {
  top: 0;
  left: 40rpx;
  border-color: #ffcc00;
  z-index: 4;
}

.olympic-icon .ring-black {
  top: 25rpx;
  left: 20rpx;
  border-color: #333333;
  z-index: 6;
}

.olympic-icon .ring-green {
  top: 50rpx;
  left: 0;
  border-color: #009e49;
  z-index: 3;
}

.olympic-icon .ring-red {
  top: 50rpx;
  left: 40rpx;
  border-color: #d83b01;
  z-index: 2;
}
/* 历史发展板块 */
.history-section {
  padding: 40rpx 30rpx;
}

.history-swiper {
  height: 380rpx;
  width: 100%;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx;
  box-sizing: border-box;
  height: 100%;
  justify-content: center;
}

.timeline-dot {
  width: 20rpx;
  height: 20rpx;
  border-radius: 50%;
  background-color: #2D7EFF;
  margin-bottom: 20rpx;
}

.timeline-content {
  background-color: #fff;
  border-radius: 10rpx;
  padding: 25rpx;
  box-shadow: 0 2rpx 10rpx rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-year {
  font-size: 32rpx;
  font-weight: bold;
  color: #2D7EFF;
  display: block;
  margin-bottom: 15rpx;
}

.event-title {
  font-size: 28rpx;
  font-weight: bold;
  display: block;
  margin-bottom: 15rpx;
  flex-shrink: 0;
}

.event-desc {
  font-size: 24rpx;
  color: #666;
  line-height: 1.6;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* 移除原有的时间轴样式 */
.timeline-container,
.timeline-line {
  display: none;
}

/* 以下垂直时间轴样式已注释，避免冲突 */
/*
.timeline-item {
  position: relative;
  margin-bottom: 60rpx;
  width: 45%;
  opacity: 0;
  transform: translateY(20rpx);
  animation: fadeInUp 0.6s var(--delay) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20rpx);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 55%;
}

.timeline-dot {
  position: absolute;
  top: 20rpx;
  width: 20rpx;
  height: 20rpx;
  border-radius: 50%;
  background-color: #1989fa;
  border: 6rpx solid #e6f7ff;
  z-index: 1;
}

.timeline-item.left .timeline-dot {
  right: -30rpx;
}

.timeline-item.right .timeline-dot {
  left: -30rpx;
}

.timeline-content {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 25rpx;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20rpx;
  width: 20rpx;
  height: 20rpx;
  background-color: #fff;
  transform: rotate(45deg);
  box-shadow: 4rpx -4rpx 4rpx rgba(0, 0, 0, 0.03);
}

.timeline-item.left .timeline-content::before {
  right: -10rpx;
}

.timeline-item.right .timeline-content::before {
  left: -10rpx;
}

.event-year {
  font-size: 28rpx;
  font-weight: bold;
  color: #1989fa;
  display: block;
  margin-bottom: 10rpx;
}

.event-title {
  font-size: 30rpx;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 10rpx;
}

.event-desc {
  font-size: 26rpx;
  color: #666;
  line-height: 1.5;
}
*/

/* 规则解析板块 */
.rules-section {
  padding: 0 30rpx 60rpx;
}

.rules-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30rpx;
  border-bottom: 2rpx solid #e0e0e0;
}

.tab-item {
  padding: 20rpx 40rpx;
  font-size: 30rpx;
  color: #666;
  position: relative;
  cursor: pointer;
}

.tab-item.active {
  color: #1989fa;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -2rpx;
  left: 0;
  width: 100%;
  height: 4rpx;
  background-color: #1989fa;
}

.rules-content {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 30rpx;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.rule-item {
  display: flex;
  margin-bottom: 30rpx;
  padding-bottom: 30rpx;
  border-bottom: 1rpx dashed #e0e0e0;
}

.rule-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rule-number {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  background-color: #e6f7ff;
  color: #1989fa;
  font-size: 30rpx;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20rpx;
  flex-shrink: 0;
}

.rule-text {
  flex: 1;
}

.rule-title {
  font-size: 30rpx;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 10rpx;
}

.rule-desc {
  font-size: 26rpx;
  color: #666;
  line-height: 1.5;
}

.foul-item, .referee-item {
  display: flex;
  margin-bottom: 30rpx;
  padding-bottom: 30rpx;
  border-bottom: 1rpx dashed #e0e0e0;
}

.foul-item:last-child, .referee-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.foul-icon, .signal-icon {
  width: 80rpx;
  height: 80rpx;
  background-color: #f0f0f0;
  border-radius: 10rpx;
  margin-right: 20rpx;
  flex-shrink: 0;
  position: relative;
}

.foul-name, .signal-name {
  font-size: 30rpx;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 10rpx;
}

.foul-desc, .signal-desc {
  font-size: 26rpx;
  color: #666;
  line-height: 1.5;
}

/* 技术动作图解区 */
.skills-section {
  padding: 0 30rpx 60rpx;
  background-color: #fff;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30rpx;
}

.skill-card {
  flex: 1 1 calc(20% - 30rpx);
  min-width: 160rpx;
  background-color: #f0f7ff;
  border-radius: 16rpx;
  padding: 30rpx 20rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-10rpx);
  box-shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.1);
  background-color: #e6f7ff;
}

.skill-icon {
  width: 100rpx;
  height: 100rpx;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 20rpx;
}

.skill-name {
  font-size: 28rpx;
  font-weight: bold;
  color: #1989fa;
  text-align: center;
}

/* 场地与器材详解 */
.court-equipment-section {
  padding: 40rpx;
  background-color: #fff;
  margin-bottom: 40rpx;
  border-radius: 20rpx;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
}

.court-diagram-container {
  width: 100%;
  margin: 30rpx 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.court-image {
  width: 90%;
  height: auto;
  border-radius: 10rpx;
}

.equipment-details {
  margin-top: 30rpx;
}

.equipment-item {
  margin-bottom: 20rpx;
  padding-bottom: 20rpx;
  border-bottom: 1rpx dashed #e0e0e0;
}

.equipment-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.equipment-title {
  font-size: 30rpx;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 10rpx;
}

.equipment-desc {
  font-size: 26rpx;
  color: #666;
}

/* 术语索引功能 */
.terminology-section {
  padding: 0 30rpx 60rpx;
  background-color: #fff;
}

.alphabet-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10rpx;
  margin-bottom: 30rpx;
  padding: 10rpx;
  background-color: #f5f7fa;
  border-radius: 10rpx;
}

.alpha-item {
  width: 50rpx;
  height: 50rpx;
  background-color: #fff;
  border-radius: 8rpx;
  font-size: 28rpx;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.alpha-item:hover, .alpha-item.active {
  background-color: #1989fa;
  color: #fff;
}

.terms-container {
  height: 500rpx;
  background-color: #f5f7fa;
  border-radius: 16rpx;
  padding: 20rpx;
}

.term-group {
  margin-bottom: 30rpx;
}

.group-letter {
  font-size: 32rpx;
  font-weight: bold;
  color: #1989fa;
  margin-bottom: 15rpx;
  padding-bottom: 10rpx;
  border-bottom: 2rpx solid #e0e0e0;
}

.term-item {
  padding: 15rpx;
  background-color: #fff;
  border-radius: 10rpx;
  margin-bottom: 15rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
}

.term-name {
  font-size: 28rpx;
  font-weight: bold;
  color: #333;
}

.term-desc {
  font-size: 24rpx;
  color: #666;
  margin-top: 5rpx;
  display: block;
}
.foul-category {
  margin-bottom: 30rpx;
  padding: 20rpx;
  background-color: #f5f5f5;
  border-radius: 10rpx;
}

.category-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 15rpx;
  display: block;
}